package com.lzy.concertticket.model.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import lombok.Data;

/**
 * 艺人信息表
 * @TableName tb_artist
 */
@TableName(value ="tb_artist")
@Data
public class ArtistEntity extends BaseEntity implements Serializable {
    /**
     * 艺人ID
     */
    @ExcelProperty(value = "艺人ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 艺人名称
     */
    @ExcelProperty(value = "艺人名称")
    private String name;

    /**
     * 类型(1:个人 2:乐队)
     */
    @ExcelProperty(value = "类型(1:个人 2:乐队)")
    private Integer type;

    /**
     * 头像URL
     */
    @ExcelProperty(value = "头像URL")
    private String avatarUrl;

    /**
     * 艺人介绍
     */
    @ExcelProperty(value = "艺人介绍")
    private String description;

    @Override
    public String toString() {
        return "ArtistEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", description='" + description + '\'' +
                "} " + super.toString();
    }
}